package com.traffic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.traffic.entity.PageResult;
import com.traffic.entity.User;
import com.traffic.model.PushUser;

import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/9/3
 */
public interface UserService extends IService<User> {
    String loginOrRegister(String account);

    boolean logout(String account);

    boolean isLogin(String account);

    User createUser(Map<String, Object> userParam);

    PageResult queryUserById(Long id);

    PageResult queryUserByPhone(String phone);

    PageResult queryUserList(Integer currentPage, Integer pageSize);

    PageResult queryUserList(Map<String, Object> param, Integer currentPage, Integer pageSize);

    User frozen(Long id);

    User thaw(Long id);

    Boolean deleteAccount(Long id);

    Boolean editPhone(String oldPhone, String newPhone);

    Object getUserId(String phone);

    List<PushUser> getuserRID(String phonenick);

    Boolean userDeleteOwn(Long id);

}
